package com.spark.invoicings.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Data;

/**
 * 发货明细表
 * 
 * @author sunyan
 * @email sunyan@gmail.com
 * @date 2024-06-13 11:13:53
 */
@Data
@TableName("t_shipment_detail")
public class ShipmentDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 发货明细id
	 */
	@TableId(type = IdType.AUTO)
	private Integer shipmentDetailId;
	/**
	 * 所属发货单id
	 */
	private Integer shippingOrderId;
	/**
	 * 商品id
	 */
	private Integer productId;
	/**
	 * 本次发货数量
	 */
	private Integer quantityShipped;
	/**
	 * 所属订单明细id
	 */
	private Integer orderDetailId;
    @TableField(exist = false)
	private DeliveryOrder deliveryOrder;
	@TableField(exist = false)
	private Product product;
	@TableField(exist = false)
	private OrderDetail orderDetail;



	public Integer getShipmentDetailId() {
		return shipmentDetailId;
	}

	public void setShipmentDetailId(Integer shipmentDetailId) {
		this.shipmentDetailId = shipmentDetailId;
	}

	public Integer getShippingOrderId() {
		return shippingOrderId;
	}

	public void setShippingOrderId(Integer shippingOrderId) {
		this.shippingOrderId = shippingOrderId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getQuantityShipped() {
		return quantityShipped;
	}

	public void setQuantityShipped(Integer quantityShipped) {
		this.quantityShipped = quantityShipped;
	}

	public Integer getOrderDetailId() {
		return orderDetailId;
	}

	public void setOrderDetailId(Integer orderDetailId) {
		this.orderDetailId = orderDetailId;
	}

	public DeliveryOrder getDeliveryOrder() {
		return deliveryOrder;
	}

	public void setDeliveryOrder(DeliveryOrder deliveryOrder) {
		this.deliveryOrder = deliveryOrder;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public OrderDetail getOrderDetail() {
		return orderDetail;
	}

	public void setOrderDetail(OrderDetail orderDetail) {
		this.orderDetail = orderDetail;
	}
}
